package com.sian.user.action;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.sian.user.pojo.UserPojo;
import com.sian.user.service.UserService;

@Controller
@RequestMapping("/user")
public class UserAction {
	@Resource
	private UserService userService;
	
	@RequestMapping(value = "grid", method = RequestMethod.POST)
	public String forwardUserGrid(int page, int rows,
			HttpServletRequest request) throws Exception {
 
		
		List<UserPojo> list = userService.getuserByPage(page, rows);
		
		//System.out.println(list);
		
		return "actdeploy/grid";
	}
}
